//
//  ViewController.swift
//  NetWorkingTools
//
//  Created by WangPengHua on 15/12/7.
//  Copyright © 2015年 WangPengHua. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        NetworkTools.sharedTools.request(HZRequestMethod.GET, URLString: "http://httpbin.org/get", parameters: ["name":"wang"]){
            (result, error) -> ()
            in
            print(result)
        }
        
        print(NetworkTools.sharedTools)
    }

    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        print(NetworkTools.sharedTools)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

